#pragma once

#include <cstring>
#include <string>
#include <ctime>
#include <iostream>
using namespace std;

#define BLOCKSIZE 1024
enum class Mode {RW, R, W};
enum class Type {DIR, REG};

struct Inode
{
    int id;
    int i_zone[11];//记录什么？？可以包含文件或文件夹的数量？
    int f_size = 0;//此node已有文件和文件夹的数量
    time_t now = time(0);
    //char* dt;
    Mode f_mode = Mode::RW;
    Type f_type = Type::REG;
    Inode() {
        memset(i_zone, -1, sizeof(i_zone));
    }
    Inode(int i, Mode fm, Type ft) {
        time_t now = time(0);
        this->id = i;
        this->f_mode = fm;
        this->f_type = ft;
        memset(i_zone, -1, sizeof(i_zone));
    }
};



